﻿namespace HRM.CORE.REPORT
{
    using APP.HELPER.Utils.Security;
    using DevExpress.Utils;
    using DevExpress.XtraPrinting;
    using DevExpress.XtraReports.UI;
    using HRM.CORE;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Drawing.Printing;

    public class rptCreateInsurance : XtraReport
    {
        private BottomMarginBand BottomMargin;
        private XRTableCell chSex;
        private XRTableCell colBasicSalary;
        private XRTableCell colBeginDate;
        private XRTableCell colBirthday;
        private XRTableCell colBirthPlace;
        private XRTableCell colCoefficient;
        private XRTableCell colCreate;
        private XRTableCell colDescription;
        private XRTableCell colEmployeeCode;
        private XRTableCell colFirstName;
        private XRTableCell colOrder;
        private XRTableCell colSex;
        private XRTableCell colStep;
        private IContainer components;
        private DetailBand Detail;
        private XRTableCell dtBirthday;
        private XRTableCell dtFromDate;
        private XRTableCell dtToDate;
        private GroupHeaderBand GroupHeader1;
        private HRM_INSURANCE l_Insurance;
        private Guid m_InsuranceTableListID;
        private int m_Order;
        private ReportFooterBand ReportFooter;
        private ReportHeaderBand ReportHeader;
        private TopMarginBand TopMargin;
        private XRLabel txtAddress;
        private XRLabel txtCompany;
        private XRLabel txtCompanyCode;
        private XRLabel txtCourseMonthYear;
        private XRTableCell txtCreate;
        private XRTableCell txtDescription;
        private XRTableCell txtEmployeeCode;
        private XRTableCell txtEmployeeName;
        private XRTableCell txtHealthInsuranceCode;
        private XRTableCell txtOrder;
        private XRTableCell txtSalary;
        private XRTableCell txtSocialInsuranceCode;
        private XRLabel txtTitle;
        private XRTable xrTable1;
        private XRTable xrTable2;
        private XRTable xrTable3;
        private XRTableCell xrTableCell10;
        private XRTableCell xrTableCell11;
        private XRTableCell xrTableCell12;
        private XRTableCell xrTableCell7;
        private XRTableCell xrTableCell8;
        private XRTableCell xrTableCell9;
        private XRTableRow xrTableRow1;
        private XRTableRow xrTableRow2;
        private XRTableRow xrTableRow3;
        private XRTableRow xrTableRow4;

        public rptCreateInsurance()
        {
            this.components = null;
            this.l_Insurance = new HRM_INSURANCE();
            this.m_InsuranceTableListID = Guid.Empty;
            this.m_Order = 0;
            this.InitializeComponent();
        }

        public rptCreateInsurance(Guid InsuranceTableListID)
        {
            this.components = null;
            this.l_Insurance = new HRM_INSURANCE();
            this.m_InsuranceTableListID = Guid.Empty;
            this.m_Order = 0;
            this.InitializeComponent();
            this.m_InsuranceTableListID = InsuranceTableListID;
        }

        private void chSex_BeforePrint(object sender, PrintEventArgs e)
        {
            try
            {
                if (Convert.ToBoolean(this.chSex.Text))
                {
                    this.chSex.Text = "Nam";
                }
                else
                {
                    this.chSex.Text = "Nữ";
                }
            }
            catch
            {
            }
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void dtBirthday_BeforePrint(object sender, PrintEventArgs e)
        {
            try
            {
                this.dtBirthday.Text = Convert.ToDateTime(this.dtBirthday.Text).ToShortDateString();
            }
            catch
            {
            }
        }

        private void dtFromDate_BeforePrint(object sender, PrintEventArgs e)
        {
            try
            {
                this.dtFromDate.Text = DateTime.Parse(this.dtFromDate.Text).Month.ToString() + "/" + DateTime.Parse(this.dtFromDate.Text).Year.ToString();
            }
            catch
            {
            }
        }

        private void dtToDate_BeforePrint(object sender, PrintEventArgs e)
        {
            try
            {
                this.dtToDate.Text = DateTime.Parse(this.dtToDate.Text).Month.ToString() + "/" + DateTime.Parse(this.dtToDate.Text).Year.ToString();
            }
            catch
            {
            }
        }

        private void InitializeComponent()
        {
            this.Detail = new DetailBand();
            this.xrTable2 = new XRTable();
            this.xrTableRow2 = new XRTableRow();
            this.txtOrder = new XRTableCell();
            this.txtCreate = new XRTableCell();
            this.txtEmployeeCode = new XRTableCell();
            this.txtEmployeeName = new XRTableCell();
            this.dtBirthday = new XRTableCell();
            this.chSex = new XRTableCell();
            this.txtSocialInsuranceCode = new XRTableCell();
            this.txtHealthInsuranceCode = new XRTableCell();
            this.dtFromDate = new XRTableCell();
            this.dtToDate = new XRTableCell();
            this.txtSalary = new XRTableCell();
            this.txtDescription = new XRTableCell();
            this.TopMargin = new TopMarginBand();
            this.BottomMargin = new BottomMarginBand();
            this.ReportHeader = new ReportHeaderBand();
            this.txtCourseMonthYear = new XRLabel();
            this.txtCompany = new XRLabel();
            this.txtAddress = new XRLabel();
            this.txtCompanyCode = new XRLabel();
            this.txtTitle = new XRLabel();
            this.GroupHeader1 = new GroupHeaderBand();
            this.xrTable1 = new XRTable();
            this.xrTableRow1 = new XRTableRow();
            this.colOrder = new XRTableCell();
            this.colCreate = new XRTableCell();
            this.colEmployeeCode = new XRTableCell();
            this.colFirstName = new XRTableCell();
            this.colBirthday = new XRTableCell();
            this.colSex = new XRTableCell();
            this.colBirthPlace = new XRTableCell();
            this.colBeginDate = new XRTableCell();
            this.colStep = new XRTableCell();
            this.colCoefficient = new XRTableCell();
            this.colBasicSalary = new XRTableCell();
            this.colDescription = new XRTableCell();
            this.ReportFooter = new ReportFooterBand();
            this.xrTable3 = new XRTable();
            this.xrTableRow3 = new XRTableRow();
            this.xrTableCell7 = new XRTableCell();
            this.xrTableCell8 = new XRTableCell();
            this.xrTableCell9 = new XRTableCell();
            this.xrTableRow4 = new XRTableRow();
            this.xrTableCell10 = new XRTableCell();
            this.xrTableCell11 = new XRTableCell();
            this.xrTableCell12 = new XRTableCell();
            this.xrTable2.BeginInit();
            this.xrTable1.BeginInit();
            this.xrTable3.BeginInit();
            this.BeginInit();
            this.Detail.Controls.AddRange(new XRControl[] { this.xrTable2 });
            this.Detail.HeightF = 29.16667f;
            this.Detail.Name = "Detail";
            this.Detail.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.Detail.TextAlignment = TextAlignment.TopLeft;
            this.xrTable2.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left;
            this.xrTable2.Font = new Font("Times New Roman", 9.75f);
            this.xrTable2.LocationFloat = new PointFloat(4.768372E-05f, 0f);
            this.xrTable2.Name = "xrTable2";
            this.xrTable2.Rows.AddRange(new XRTableRow[] { this.xrTableRow2 });
            this.xrTable2.SizeF = new SizeF(1039f, 29.16667f);
            this.xrTable2.StylePriority.UseBorders = false;
            this.xrTable2.StylePriority.UseFont = false;
            this.xrTableRow2.Cells.AddRange(new XRTableCell[] { this.txtOrder, this.txtCreate, this.txtEmployeeCode, this.txtEmployeeName, this.dtBirthday, this.chSex, this.txtSocialInsuranceCode, this.txtHealthInsuranceCode, this.dtFromDate, this.dtToDate, this.txtSalary, this.txtDescription });
            this.xrTableRow2.Name = "xrTableRow2";
            this.xrTableRow2.Weight = 1.0;
            this.txtOrder.Name = "txtOrder";
            this.txtOrder.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtOrder.StylePriority.UsePadding = false;
            this.txtOrder.StylePriority.UseTextAlignment = false;
            this.txtOrder.TextAlignment = TextAlignment.MiddleLeft;
            this.txtOrder.Weight = 0.18749981602642024;
            this.txtOrder.BeforePrint += new PrintEventHandler(this.txtOrder_BeforePrint);
            this.txtCreate.Name = "txtCreate";
            this.txtCreate.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtCreate.StylePriority.UsePadding = false;
            this.txtCreate.StylePriority.UseTextAlignment = false;
            this.txtCreate.TextAlignment = TextAlignment.MiddleLeft;
            this.txtCreate.Weight = 0.65800020564528094;
            this.txtEmployeeCode.Name = "txtEmployeeCode";
            this.txtEmployeeCode.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtEmployeeCode.StylePriority.UsePadding = false;
            this.txtEmployeeCode.StylePriority.UseTextAlignment = false;
            this.txtEmployeeCode.TextAlignment = TextAlignment.MiddleLeft;
            this.txtEmployeeCode.Weight = 0.38577777754443576;
            this.txtEmployeeName.Name = "txtEmployeeName";
            this.txtEmployeeName.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtEmployeeName.StylePriority.UsePadding = false;
            this.txtEmployeeName.StylePriority.UseTextAlignment = false;
            this.txtEmployeeName.TextAlignment = TextAlignment.MiddleLeft;
            this.txtEmployeeName.Weight = 0.76583337490135228;
            this.dtBirthday.Name = "dtBirthday";
            this.dtBirthday.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.dtBirthday.StylePriority.UsePadding = false;
            this.dtBirthday.StylePriority.UseTextAlignment = false;
            this.dtBirthday.TextAlignment = TextAlignment.MiddleLeft;
            this.dtBirthday.Weight = 0.39516652151314796;
            this.dtBirthday.BeforePrint += new PrintEventHandler(this.dtBirthday_BeforePrint);
            this.chSex.Name = "chSex";
            this.chSex.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.chSex.StylePriority.UsePadding = false;
            this.chSex.StylePriority.UseTextAlignment = false;
            this.chSex.TextAlignment = TextAlignment.MiddleCenter;
            this.chSex.Weight = 0.26195786355237333;
            this.chSex.BeforePrint += new PrintEventHandler(this.chSex_BeforePrint);
            this.txtSocialInsuranceCode.Name = "txtSocialInsuranceCode";
            this.txtSocialInsuranceCode.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtSocialInsuranceCode.StylePriority.UsePadding = false;
            this.txtSocialInsuranceCode.StylePriority.UseTextAlignment = false;
            this.txtSocialInsuranceCode.TextAlignment = TextAlignment.MiddleLeft;
            this.txtSocialInsuranceCode.Weight = 0.551319839372306;
            this.txtSocialInsuranceCode.BeforePrint += new PrintEventHandler(this.dtBirthday_BeforePrint);
            this.txtHealthInsuranceCode.Name = "txtHealthInsuranceCode";
            this.txtHealthInsuranceCode.StylePriority.UseTextAlignment = false;
            this.txtHealthInsuranceCode.TextAlignment = TextAlignment.MiddleCenter;
            this.txtHealthInsuranceCode.Weight = 0.48866702675803375;
            this.dtFromDate.Name = "dtFromDate";
            this.dtFromDate.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.dtFromDate.StylePriority.UsePadding = false;
            this.dtFromDate.StylePriority.UseTextAlignment = false;
            this.dtFromDate.TextAlignment = TextAlignment.MiddleCenter;
            this.dtFromDate.Weight = 0.38888935162584753;
            this.dtFromDate.BeforePrint += new PrintEventHandler(this.dtFromDate_BeforePrint);
            this.dtToDate.Name = "dtToDate";
            this.dtToDate.StylePriority.UseTextAlignment = false;
            this.dtToDate.TextAlignment = TextAlignment.MiddleCenter;
            this.dtToDate.Weight = 0.39268687789059664;
            this.dtToDate.BeforePrint += new PrintEventHandler(this.dtToDate_BeforePrint);
            this.txtSalary.Name = "txtSalary";
            this.txtSalary.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtSalary.StylePriority.UsePadding = false;
            this.txtSalary.StylePriority.UseTextAlignment = false;
            this.txtSalary.TextAlignment = TextAlignment.MiddleRight;
            this.txtSalary.Weight = 0.40875751685548567;
            this.txtDescription.Name = "txtDescription";
            this.txtDescription.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtDescription.StylePriority.UsePadding = false;
            this.txtDescription.StylePriority.UseTextAlignment = false;
            this.txtDescription.TextAlignment = TextAlignment.MiddleLeft;
            this.txtDescription.Weight = 0.65677748716888618;
            this.TopMargin.HeightF = 70f;
            this.TopMargin.Name = "TopMargin";
            this.TopMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.TopMargin.TextAlignment = TextAlignment.TopLeft;
            this.BottomMargin.HeightF = 56f;
            this.BottomMargin.Name = "BottomMargin";
            this.BottomMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.BottomMargin.TextAlignment = TextAlignment.TopLeft;
            this.ReportHeader.Controls.AddRange(new XRControl[] { this.txtCourseMonthYear, this.txtCompany, this.txtAddress, this.txtCompanyCode, this.txtTitle });
            this.ReportHeader.HeightF = 133f;
            this.ReportHeader.Name = "ReportHeader";
            this.txtCourseMonthYear.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic | FontStyle.Bold);
            this.txtCourseMonthYear.LocationFloat = new PointFloat(0f, 99.00001f);
            this.txtCourseMonthYear.Name = "txtCourseMonthYear";
            this.txtCourseMonthYear.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtCourseMonthYear.SizeF = new SizeF(1039f, 17.70834f);
            this.txtCourseMonthYear.StylePriority.UseFont = false;
            this.txtCourseMonthYear.StylePriority.UseTextAlignment = false;
            this.txtCourseMonthYear.Text = "Số:............ Th\x00e1ng........... Năm...................";
            this.txtCourseMonthYear.TextAlignment = TextAlignment.MiddleCenter;
            this.txtCompany.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.txtCompany.LocationFloat = new PointFloat(4.768372E-05f, 18.29168f);
            this.txtCompany.Name = "txtCompany";
            this.txtCompany.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtCompany.SizeF = new SizeF(462.1666f, 17.70833f);
            this.txtCompany.StylePriority.UseFont = false;
            this.txtCompany.Text = "txtCompany";
            this.txtAddress.LocationFloat = new PointFloat(4.768372E-05f, 37.00001f);
            this.txtAddress.Name = "txtAddress";
            this.txtAddress.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtAddress.SizeF = new SizeF(462.1667f, 17.70833f);
            this.txtAddress.Text = "txtAddress";
            this.txtCompanyCode.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.txtCompanyCode.LocationFloat = new PointFloat(4.768372E-05f, 0f);
            this.txtCompanyCode.Name = "txtCompanyCode";
            this.txtCompanyCode.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtCompanyCode.SizeF = new SizeF(462.1666f, 17.70833f);
            this.txtCompanyCode.StylePriority.UseFont = false;
            this.txtCompanyCode.Text = "M\x00e3 đơn vị:__/__ ____";
            this.txtTitle.Font = new Font("Times New Roman", 16f, FontStyle.Bold);
            this.txtTitle.LocationFloat = new PointFloat(3.178914E-05f, 68.75f);
            this.txtTitle.Name = "txtTitle";
            this.txtTitle.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtTitle.SizeF = new SizeF(1039f, 30.25001f);
            this.txtTitle.StylePriority.UseFont = false;
            this.txtTitle.StylePriority.UseTextAlignment = false;
            this.txtTitle.Text = "DANH S\x00c1CH LAO ĐỘNG PH\x00c1T SINH NGHIỆP VỤ BHXH, BHYT";
            this.txtTitle.TextAlignment = TextAlignment.MiddleCenter;
            this.GroupHeader1.Controls.AddRange(new XRControl[] { this.xrTable1 });
            this.GroupHeader1.HeightF = 40.625f;
            this.GroupHeader1.Name = "GroupHeader1";
            this.xrTable1.AnchorVertical = VerticalAnchorStyles.Bottom;
            this.xrTable1.BackColor = Color.WhiteSmoke;
            this.xrTable1.Borders = BorderSide.All;
            this.xrTable1.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTable1.LocationFloat = new PointFloat(4.768372E-05f, 0f);
            this.xrTable1.Name = "xrTable1";
            this.xrTable1.Rows.AddRange(new XRTableRow[] { this.xrTableRow1 });
            this.xrTable1.SizeF = new SizeF(1039f, 40.625f);
            this.xrTable1.StylePriority.UseBackColor = false;
            this.xrTable1.StylePriority.UseBorders = false;
            this.xrTable1.StylePriority.UseFont = false;
            this.xrTable1.StylePriority.UseTextAlignment = false;
            this.xrTable1.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableRow1.Cells.AddRange(new XRTableCell[] { this.colOrder, this.colCreate, this.colEmployeeCode, this.colFirstName, this.colBirthday, this.colSex, this.colBirthPlace, this.colBeginDate, this.colStep, this.colCoefficient, this.colBasicSalary, this.colDescription });
            this.xrTableRow1.Name = "xrTableRow1";
            this.xrTableRow1.Weight = 1.0;
            this.colOrder.CanGrow = false;
            this.colOrder.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.colOrder.Name = "colOrder";
            this.colOrder.StylePriority.UseFont = false;
            this.colOrder.StylePriority.UseTextAlignment = false;
            this.colOrder.Text = "STT";
            this.colOrder.TextAlignment = TextAlignment.MiddleCenter;
            this.colOrder.Weight = 0.18749992582046493;
            this.colCreate.CanGrow = false;
            this.colCreate.Name = "colCreate";
            this.colCreate.Text = "Ph\x00e1t sinh";
            this.colCreate.Weight = 0.65799999234900719;
            this.colEmployeeCode.CanGrow = false;
            this.colEmployeeCode.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.colEmployeeCode.Name = "colEmployeeCode";
            this.colEmployeeCode.StylePriority.UseFont = false;
            this.colEmployeeCode.StylePriority.UseTextAlignment = false;
            this.colEmployeeCode.Text = "M\x00e3 nh\x00e2n vi\x00ean";
            this.colEmployeeCode.TextAlignment = TextAlignment.MiddleCenter;
            this.colEmployeeCode.Weight = 0.38577766704804256;
            this.colFirstName.CanGrow = false;
            this.colFirstName.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.colFirstName.Name = "colFirstName";
            this.colFirstName.StylePriority.UseFont = false;
            this.colFirstName.StylePriority.UseTextAlignment = false;
            this.colFirstName.Text = "Họ l\x00f3t";
            this.colFirstName.TextAlignment = TextAlignment.MiddleCenter;
            this.colFirstName.Weight = 0.76583366546215992;
            this.colBirthday.CanGrow = false;
            this.colBirthday.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.colBirthday.Name = "colBirthday";
            this.colBirthday.StylePriority.UseFont = false;
            this.colBirthday.StylePriority.UseTextAlignment = false;
            this.colBirthday.Text = "Ng\x00e0y sinh";
            this.colBirthday.TextAlignment = TextAlignment.MiddleCenter;
            this.colBirthday.Weight = 0.395166316936798;
            this.colSex.CanGrow = false;
            this.colSex.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.colSex.Name = "colSex";
            this.colSex.StylePriority.UseFont = false;
            this.colSex.StylePriority.UseTextAlignment = false;
            this.colSex.Text = "Giới t\x00ednh";
            this.colSex.TextAlignment = TextAlignment.MiddleCenter;
            this.colSex.Weight = 0.26195817154077022;
            this.colBirthPlace.CanGrow = false;
            this.colBirthPlace.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.colBirthPlace.Name = "colBirthPlace";
            this.colBirthPlace.StylePriority.UseFont = false;
            this.colBirthPlace.StylePriority.UseTextAlignment = false;
            this.colBirthPlace.Text = "Số sổ BHXH";
            this.colBirthPlace.TextAlignment = TextAlignment.MiddleCenter;
            this.colBirthPlace.Weight = 0.55131914802993287;
            this.colBeginDate.CanGrow = false;
            this.colBeginDate.Name = "colBeginDate";
            this.colBeginDate.Text = "Số thẻ BHYT";
            this.colBeginDate.Weight = 0.48866763658066725;
            this.colStep.CanGrow = false;
            this.colStep.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.colStep.Name = "colStep";
            this.colStep.StylePriority.UseFont = false;
            this.colStep.StylePriority.UseTextAlignment = false;
            this.colStep.Text = "Từ th\x00e1ng, năm";
            this.colStep.TextAlignment = TextAlignment.MiddleCenter;
            this.colStep.Weight = 0.38888899273695249;
            this.colCoefficient.CanGrow = false;
            this.colCoefficient.Name = "colCoefficient";
            this.colCoefficient.Text = "Đến th\x00e1ng, năm";
            this.colCoefficient.Weight = 0.3926868442237223;
            this.colBasicSalary.CanGrow = false;
            this.colBasicSalary.Name = "colBasicSalary";
            this.colBasicSalary.Text = "Lương đ\x00f3ng BHXH";
            this.colBasicSalary.Weight = 0.40875748192410183;
            this.colDescription.CanGrow = false;
            this.colDescription.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.colDescription.Name = "colDescription";
            this.colDescription.StylePriority.UseFont = false;
            this.colDescription.StylePriority.UseTextAlignment = false;
            this.colDescription.Text = "Ghi ch\x00fa";
            this.colDescription.TextAlignment = TextAlignment.MiddleCenter;
            this.colDescription.Weight = 0.65677738018472454;
            this.ReportFooter.Controls.AddRange(new XRControl[] { this.xrTable3 });
            this.ReportFooter.HeightF = 100f;
            this.ReportFooter.Name = "ReportFooter";
            this.xrTable3.LocationFloat = new PointFloat(4.768372E-05f, 21.875f);
            this.xrTable3.Name = "xrTable3";
            this.xrTable3.Rows.AddRange(new XRTableRow[] { this.xrTableRow3, this.xrTableRow4 });
            this.xrTable3.SizeF = new SizeF(1039f, 62.5f);
            this.xrTableRow3.Cells.AddRange(new XRTableCell[] { this.xrTableCell7, this.xrTableCell8, this.xrTableCell9 });
            this.xrTableRow3.Name = "xrTableRow3";
            this.xrTableRow3.Weight = 1.0;
            this.xrTableCell7.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableCell7.Name = "xrTableCell7";
            this.xrTableCell7.StylePriority.UseFont = false;
            this.xrTableCell7.StylePriority.UseTextAlignment = false;
            this.xrTableCell7.Text = "Người lập danh s\x00e1ch";
            this.xrTableCell7.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell7.Weight = 1.0;
            this.xrTableCell8.Name = "xrTableCell8";
            this.xrTableCell8.Weight = 1.0;
            this.xrTableCell9.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableCell9.Name = "xrTableCell9";
            this.xrTableCell9.StylePriority.UseFont = false;
            this.xrTableCell9.StylePriority.UseTextAlignment = false;
            this.xrTableCell9.Text = "Gi\x00e1m đốc";
            this.xrTableCell9.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell9.Weight = 1.0;
            this.xrTableRow4.Cells.AddRange(new XRTableCell[] { this.xrTableCell10, this.xrTableCell11, this.xrTableCell12 });
            this.xrTableRow4.Name = "xrTableRow4";
            this.xrTableRow4.Weight = 1.0;
            this.xrTableCell10.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell10.Name = "xrTableCell10";
            this.xrTableCell10.StylePriority.UseFont = false;
            this.xrTableCell10.StylePriority.UseTextAlignment = false;
            this.xrTableCell10.Text = "(K\x00fd v\x00e0 ghi r\x00f5 họ t\x00ean)";
            this.xrTableCell10.TextAlignment = TextAlignment.TopCenter;
            this.xrTableCell10.Weight = 1.0;
            this.xrTableCell11.Name = "xrTableCell11";
            this.xrTableCell11.Weight = 1.0;
            this.xrTableCell12.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell12.Name = "xrTableCell12";
            this.xrTableCell12.StylePriority.UseFont = false;
            this.xrTableCell12.StylePriority.UseTextAlignment = false;
            this.xrTableCell12.Text = "(K\x00fd v\x00e0 ghi r\x00f5 họ t\x00ean)";
            this.xrTableCell12.TextAlignment = TextAlignment.TopCenter;
            this.xrTableCell12.Weight = 1.0;
            base.Bands.AddRange(new Band[] { this.Detail, this.TopMargin, this.BottomMargin, this.ReportHeader, this.GroupHeader1, this.ReportFooter });
            base.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            base.Landscape = true;
            base.Margins = new Margins(0x47, 0x3b, 70, 0x38);
            base.PageHeight = 0x33b;
            base.PageWidth = 0x491;
            base.PaperKind = PaperKind.A4;
            base.Version = "9.3";
            this.BeforePrint += new PrintEventHandler(this.rptListSalaryEmployee_BeforePrint);
            this.xrTable2.EndInit();
            this.xrTable1.EndInit();
            this.xrTable3.EndInit();
            this.EndInit();
        }

        private void InitMultiLanguages()
        {
        }

        private void LoadAllData()
        {
            DataSet set = new DataSet();
            DataTable list = new DataTable();
            list = this.l_Insurance.GetList(this.m_InsuranceTableListID);
            set.Tables.Add(list);
            base.DataSource = set;
            this.txtCreate.DataBindings.Add("Text", base.DataSource, "Create");
            this.txtEmployeeCode.DataBindings.Add("Text", base.DataSource, "EmployeeCode");
            this.txtEmployeeName.DataBindings.Add("Text", base.DataSource, "EmployeeName");
            this.dtBirthday.DataBindings.Add("Text", base.DataSource, "Birthday");
            this.chSex.DataBindings.Add("Text", base.DataSource, "Sex");
            this.txtSocialInsuranceCode.DataBindings.Add("Text", base.DataSource, "SocialInsuranceCode");
            this.txtHealthInsuranceCode.DataBindings.Add("Text", base.DataSource, "HealthInsuranceCode");
            this.dtFromDate.DataBindings.Add("Text", base.DataSource, "FromDate");
            this.dtToDate.DataBindings.Add("Text", base.DataSource, "ToDate");
            this.txtSalary.DataBindings.Add("Text", base.DataSource, "Salary", "{0:##,##0}");
            this.txtDescription.DataBindings.Add("Text", base.DataSource, "Description");
        }

        private void rptListSalaryEmployee_BeforePrint(object sender, PrintEventArgs e)
        {
            this.LoadAllData();
            HRM_INSURANCE_TABLELIST hrm_insurance_tablelist = new HRM_INSURANCE_TABLELIST();
            hrm_insurance_tablelist.Get(this.m_InsuranceTableListID);
            this.txtCourseMonthYear.Text = "Số: " + hrm_insurance_tablelist.Course.ToString() + ". Th\x00e1ng " + hrm_insurance_tablelist.Month.ToString() + " Năm " + hrm_insurance_tablelist.Year.ToString();
            ////if (MyInfo.Get(MyEncryption.Encrypt("ERP01", "123654", true)) == "OK")
            {
                this.txtCompanyCode.Text = "M\x00e3 đơn vị: " + "";// MyInfo.CompanyCode;
                this.txtCompany.Text = "T\x00ean đơn vị: " + "";//MyInfo.Company;
                this.txtAddress.Text = "Địa chỉ: " + "";//MyInfo.Address;
            }
        }

        private void txtOrder_BeforePrint(object sender, PrintEventArgs e)
        {
            this.m_Order++;
            this.txtOrder.Text = this.m_Order.ToString();
        }
    }
}

